package com.ruoyi.merchant.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.Shop;
import com.ruoyi.common.core.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 服务评价对象 service_evaluate
 *
 * @author ruoyi
 * @date 2024-09-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceEvaluate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评价唯一id
     */
    private Integer id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Integer userId;

    /**
     * 店铺编号
     */
    @Excel(name = "店铺编号")
    private Integer mid;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderId;

    /**
     * 服务类别编号
     */
    @Excel(name = "服务类别编号")
    private String serviceId;

    /**
     * 星级【一旦评价，则修改商家的整体总星级】
     */
    @Excel(name = "星级【一旦评价，则修改商家的整体总星级】")
    private Integer rate;

    /**
     * 评价图片【集合图片】
     */
    @Excel(name = "评价图片【集合图片】")
    private String imgs;

    /**
     * 评价内容
     */
    @Excel(name = "评价内容")
    private String content;

    /**
     * 评价时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /**
     * 删除状态
     */
    @Excel(name = "删除状态")
    private Integer deleted;

    private User user;

    private Shop shop;

    private ServiceOrder serviceOrder;

    private ServiceType serviceType;
}
